package com.leza.myapplication;

import android.os.Bundle;

import com.leza.myapplication.ui.home.HomeFragment;

import androidx.appcompat.app.AppCompatActivity;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_main);

        HomeFragment homeFragment = new HomeFragment();
        getSupportFragmentManager().beginTransaction().add(R.id.nav_host_fragment, homeFragment).commitAllowingStateLoss();
        homeFragment.TimerRefreshStart();
    }

}